package com.wandian.news.adapter;

import android.text.Html;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.wandian.news.R;
import com.wandian.news.bean.LifeBirthDayBean;


/**
 * @author Administrator
 * @date 2019/12/16-13:32
 * @description 适配器
 **/
public class LifeBirthDayRecycleAdapter extends BaseQuickAdapter<LifeBirthDayBean.NewslistEntity, BaseViewHolder> {

    public LifeBirthDayRecycleAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper,LifeBirthDayBean.NewslistEntity item) {
        TextView tv_title = helper.getView(R.id.tv_title);
        TextView tv_birth_day_content = helper.getView(R.id.tv_birth_day_content);
        tv_title.setText("评价："+item.getTitle());
        tv_birth_day_content.setText(""+ Html.fromHtml(item.getContent()+""));
    }


}
